<div id="data_page" class="in_page">
	<div class="panel panel-default">
  <div class="panel-body">
   <form class="form-inline" action="{:U('Menu/user')}" method="get">
	  <div class="form-group">
	    <label for="exampleInputEmail2" >搜索</label>
	    <input type="text" class="form-control" name="keyword" id="exampleInputEmail2" placeholder="昵称或者openid">
	  </div>
  	  <button type="submit" name="sub" class="btn btn-sm btn-default">查找</button>
      <a href="{:U('Menu/exportcsv')}?keyword={$list.keyw}"><button type="button" class="btn btn-sm btn-default">导出</button></a>
      <a href="{:U('Menu/user_list')}"><button type="button" class="btn btn-sm btn-default">获取用户列表</button></a>
</form>
  </div>
</div>
      <table class="table table-bordered" style="text-align:center;">
        <thead>
          <tr>
            <th scope="row"><span class="glyphicon glyphicon-frie"></span>序号</th>
   <!--          <th><span class="glyphicon glyphicon-leaf"></span>姓名</th> -->
            <th><span class="glyphicon glyphicon-leaf"></span>是否关注</th>
            <th><span class="glyphicon glyphicon-leaf"></span>openid</th>
            <th><span class="glyphicon glyphicon-leaf"></span>昵称</th>
            <th><span class="glyphicon glyphicon-leaf"></span>性别</th>
            <th><span class="glyphicon glyphicon-leaf"></span>语言</th>
            <th><span class="glyphicon glyphicon-leaf"></span>城市</th>
            <th><span class="glyphicon glyphicon-leaf"></span>省份</th>
            <th><span class="glyphicon glyphicon-leaf"></span>国家</th>
            <th><span class="glyphicon glyphicon-leaf"></span>用户头像</th>
            <th><span class="glyphicon glyphicon-leaf"></span>用户关注时间</th>
          </tr>
        </thead>
     <volist name="list['list']" id="data" key="key">
        <tbody>
          <tr class="trr">
            <th scope="row">{$key}</th>
          <!--   <td>{$data['name']}</td> -->
            <td><if condition="$data['subscribe'] eq '1'">已关注</if><if condition="$data['subscribe'] eq '0'">取消关注</if></td>
            <td>{$data['openid']}</td>
            <td>{$data['nickname']}</td>
            <td><if condition="$data['sex'] eq '1'">男</if><if condition="$data['sex'] eq '2'">女</if><if condition="$data['sex'] eq '0'">未知</if></td>
            <td><if condition="$data['language'] eq 'zh_CN'">中文</if><if condition="$data['language'] neq 'zh_CN'">其他</if></td>
            <td>{$data['city']}</td>
            <td>{$data['province']}</td>
            <td>{$data['country']}</td>
            <td><img width="50" height="50" src="{$data['headimgurl']}"/></td>
            <td>{$data['subscribe_time']}</td>
          </tr>
        </tbody>
      </volist>
      </table> 
	<div class="pagelist">{$list['page']}	</div>
<!-- 共{$list['count']}条 -->
<style>
 .pagelist{ text-align:right; background:#f1f1f1; padding:7px 0;}
  .pagelist a{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; background:#fff; color:#6185a2;}
 .pagelist span{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; color:#6185a2; color:#fff; background:#6185a2;}
 .trr td{height: 50px; line-height: 50px}

</style>
						
								
